const defaultState = {
    follows: []

};
export default function orderFollows(state = defaultState, action) {
    const {type, payload} = action;
    switch (type) {
        case 'ZAD_ORDER.GET_FOLLOWS':
        case 'ZAD_ORDER.UPDATE_ORDER_FOLLOWS':
            return {...state, follows: [...payload]};
        case 'ZAD_ORDER.HIDE_EDIT':
        case 'ZAD_ORDER.HIDE_CREATE':
            return {...state, follows: []};
        default:
            return state;
    }
}

